package com.songshu.e.dubbo.api.service;

import com.alibaba.dubbo.config.annotation.Reference;
import com.songshu.e.dubbo.server.api.ApiAdService;
import com.songshu.e.dubbo.server.pojo.Ad;
import com.songshu.e.dubbo.server.vo.PageInfo;
import org.springframework.stereotype.Service;

@Service
public class AdService {
    //注入dubbo提供的服务
    @Reference(version = "1.0.0")
    private ApiAdService apiAdService;

    public PageInfo<Ad> queryAdList(Integer type,Integer page, Integer pageSize){
        return apiAdService.queryAdList(type,page,pageSize);
    }
}
